
<%@page import="com.qdu.dao.Recommend"%>
<%@page import="java.text.NumberFormat"%>
<%@page import="com.qdu.impl.RecommendImpl"%>
<%@page import="java.util.List"%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!-- import="java.util.*,impl.*,java.text.* " -->
<!DOCTYPE HTML>
<HTML>
    <HEaD>
        <TITLE>网上书店</TITLE>
        <LINK rel="stylesheet" href="img/ys1.css">
        <STYLE>
            #div0{
                width:100%;
                height:50px;
                background-color:#FFCCCC;
                position:fixed;
                z-index:10;
                margin:-10px -10px 0px -10px;
            }
            #top-page{
                float:right;
                height:10px;
                white-space:nowrap;
                margin:25px 0px 0px 0px;
            }	
            #logo{
                height:50px;
                width:50px;
                float:left;
            }
            
        </style>
                <%
        String message = (String)request.getAttribute("message");
                if(message == null){
                                message = "";
                }
                if (!message.trim().equals("")){
                        out.println("<script language='javascript'>");
                        out.println("alert('"+message+"');");
                        out.println("</script>");
                }
                request.removeAttribute("message");
        %>
    </HEaD>
    <BODY leftMargin=0 topMargin=0 style="background-color:#F0FFFF">
        <div id="div0">
            <div id="logo">
                <img src="img/logo.jpg" style="width:100%;height:100%; margin-left:15%">
            </div>
            <div id="top-page" align="right" style="margin-right:5%">
                <div align=center>
                   <a href="/J02_T13_P04/index.jsp"><FONT color=#ffffff>首页</FONT></a><FONT color=#ffffff> │ </FONT>
                    <a href="/J02_T13_P04/newbook.jsp"><FONT color=#ffffff>最新图书</FONT></a><FONT color=#ffffff> │ </FONT>
                    <a href="/J02_T13_P04/fenlei.jsp"><FONT color=#ffffff>图书分类</FONT></a><FONT color=#ffffff> │ </FONT>
                    <a href="/J02_T13_P04/allbooklist.jsp"><FONT color=#ffffff>全部图书</FONT></a><FONT color=#ffffff> │ </FONT>
                    <a href="/J02_T13_P04/admin/login.jsp" target=_blank><FONT color=#ffffff>管理入口</FONT></a>
                </div>
            </div>
        </div>
        <div align="center" style="width:779">
            <video src="img/读书的好处.mp4" controls style="width:90%; margin-top: 2.5%;"></video>
        </div>
        <div align="center">
            <img src="img/top.jpg" width="779">
        </div>

        <div align=center>
            <iframe src="login.jsp" frameBorder=0 noResize width=779 scrolling=no  height=50>
            </iframe>
        </div>

        <div style="width: 779px;margin:0 auto;" align=center>
            <div style="float:left;"><IMG height=107 src="img/ruby_logo.gif" height=107 width=580></div>

            <div style="float:left;margin-top:-10px;width:198px;"><IMG height=40 
                                                                       src="img/hc_index_15.gif" 
                                                                       width=190>
                <br><br>
                <form id="form1" name="form1" action="sbs">

                    <input 
                        style="BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #999999 1px solid; BORDER-BOTTOM: #999999 1px solid; BaCKGROUND-COLOR: #f9fcff" 
                        name="key"><br><br>
                    书名关键字&nbsp;
                    <input
                        type=image 
                        src="img/hc_index_16.gif"
                        value=检索 name=Submit2>

                </form></div>


        </div>
       
        <table cellSpacing=0 cellPadding=0 width=779 align=center bgColor=#F0FFFF 
               border=0>
            <tbody>

                <tr>
                    <td>
                        <table cellSpacing=0 cellPadding=0 width=100% align=center border=0><tbody>
                                
                                <tr>
                                    <td>
                                        <table cellSpacing=0 cellPadding=0 width=100% align=center 
                                               border=0>
                                            <tbody>
                                                <tr>
                                                    <td width=529><IMG height=23 
                                                                       src="img/hc_index_21.gif "
                                                                       width=69></td>
                                                    <td valign=bottom width=38><a 
                                                            href="newbook.jsp" 
                                                            target=_blank>更多</a></td>
                                                </tr>
                                            </tbody></table></td></tr>
                                <tr>
                                    <td align=middle><table cellspacing=0 cellpadding=3 width="100%" border=0>
                                            <tbody>
                                                <tr>

                                                    <!--=======================================================-->	
                                                    <%                            
                                                        List listnew6 = new RecommendImpl().get6NewBook();

                                                        NumberFormat format = NumberFormat.getNumberInstance();
                                                        format.setMaximumFractionDigits(2);

                                                        for (int i = 0; i < 3; i++) {
                                                            List list2 = (List) listnew6.get(i);
                                                    %>
                                                    <td width="35%">	  
                                                        <table cellspacing=0 cellpadding=2 width="100%" border=0>
                                                            <tbody>
                                                                <tr>
                                                                    <td height=10></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="32%" rowspan=5>
                                                                        <a href="admin/bookinfo.jsp?id=<%=list2.get(3).toString()%>" target="_blank"><img height=80 src=<%=list2.get(1).toString()%> width=60 align=left border=0></a></td>
                                                                    <td width="68%"><a href="admin/bookinfo.jsp?id=<%=list2.get(3).toString()%>" target=_blank>
                                                                            <font color=#ff6600><%=list2.get(0).toString()%></font></a></td>
                                                                </tr>                          
                                                                <tr>
                                                                    <td width="68%">定价：<%=list2.get(2).toString()%>￥</td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="68%">白金价：<font 
                                                                            color=#ff0000><%=format.format(Float.parseFloat(list2.get(2).toString()) * 0.8)%>￥</font></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="68%">黄金价：<font 
                                                                            color=#ff0000><%=format.format(Float.parseFloat(list2.get(2).toString()) * 0.7)%>￥</font></td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                    <%
                                                        }
                                                    %>

                                                </tr>
                                                <tr>
                                                    <%
                                                        for (int i = 3; i < 6; i++) {
                                                            List list2 = (List) listnew6.get(i);
                                                    %>
                                                    <td width="35%">	  
                                                        <table cellspacing=0 cellpadding=2 width="100%" border=0>
                                                            <tbody>
                                                                <tr>
                                                                    <td height=10></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="32%" rowspan=5>
                                                                        <a href="bookinfo.jsp?id=<%=list2.get(3).toString()%>" target="_blank"><img height=80 src=<%=list2.get(1).toString()%> width=60 align=left border=0></a></td>
                                                                    <td width="68%"><a href="admin/bookinfo.jsp?id=<%=list2.get(3).toString()%>" target=_blank>
                                                                            <font color=#ff6600><%=list2.get(0).toString()%></font></a></td>
                                                                </tr>                          
                                                                <tr>
                                                                    <td width="68%">定价：<%=list2.get(2).toString()%>￥</td>
                                                                </tr>

                                                                <tr>
                                                                    <td width="68%">白金价：<font 
                                                                            color=#ff0000><%=format.format(Float.parseFloat(list2.get(2).toString()) * 0.8)%>￥</font></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="68%">黄金价：<font 
                                                                            color=#ff0000><%=format.format(Float.parseFloat(list2.get(2).toString()) * 0.7)%>￥</font></td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                    <%
                                                        }
                                                    %>
                                                </tr>
                                            </tbody>
                                        </table></td>
                                </tr>



                            </tbody></table></td></tr>
            </tbody></table></td>

</tr></tbody></table>
<br><br><br>
<br><br><br>
<div style="background:#CCFFFF;color:white;height:13;"align=center >2020-2030 网上书店  版权所有</div>
<div style="background:#FFCCCC;color:white;height:13;"align=center >2020-2030 网上书店  版权所有</div>
<div style="background:#CCFFFF;color:white;height:13;"align=center >2020-2030 网上书店  版权所有</div>


</BODY></HTML>